<?php
$error = $this->session->flashdata('error');
$message = $this->session->flashdata('message');
?>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title><?php echo $title; ?></title>
    
    <?php echo link_tag('public/layouts/'.$template_folder.'/css/style.css'); ?>
    
    <script src="<?php echo base_url(); ?>public/layouts/<?php echo $template_folder; ?>/js/jquery-1.9.1.min.js"></script>
    <script src="<?php echo base_url(); ?>public/layouts/<?php echo $template_folder; ?>/js/jquery.maskedinput-1.3.1.min.js"></script>
    <script src="<?php echo base_url(); ?>public/layouts/<?php echo $template_folder; ?>/js/functions.js"></script>
  </head>
  
  <body>
    <?php if ($error) : ?>
    <div id="error">
      <?php echo heading('Erro', 1); ?>
      <span><?php echo $error; ?></span>
    </div>
    <?php endif; ?>
    
    <?php if ($message) : ?>
    <div id="message">
      <?php echo heading('Mensagem', 1); ?>
      <span><?php echo $message; ?></span>
    </div>
    <?php endif; ?>